Summary:this page is a printf formatting cheat sheet. I originally created this cheat sheet for my own purposes, and then thought I would share it is here.A cool thing about the formatting syntax was that the specifiers you can use be printf very
Usage
int printf (const char *format,[argument]);
Format for the output of the format parameter, defined as:
%[FLAGS][WIDTH][.PERC] [f| N|h|l]type
Specify the mode of data output, as follows:
1.type meanings are as follows:
D signed 10 binary
PrefaceWhen you debug a program under a Linux terminal, you sometimes need to output a lot of information. If you can control the color and display of the font, you can make the output information sharp contrast, easy to observe the data during
-------------------------------------------------------------------------------------------"Cut Command"Cut [Options] File-F Column Number (--field extract the first few columns)-D delimiter (--delimiter splits columns by specified delimiter)VI User.
The linker automatically chooses an appropriate Formatter for printf-And scanf-related function based on information from the compiler. If that information is missing or insufficient, for example if printf is used through a function pointer, if the
1. Main function Parameter formint Main (int.Char char *env[]); // the first parameter, ARGC, represents the number of arguments on a command line // The second parameter points to each parameter in turn, such as "Ls-l", argv[0] to "LS", argv[1] to "
This article mainly introduces the implementation of sprintf and printf functions in JavaScript. These two functions are available in most programming languages, but not in JS. This article introduces how to implement these two functions in js, for
Sprintf, printf, and sprintfprintf are implemented in JavaScript.
Use JavaScript to implement the sprintf/printf functions in most languages.
Http://www.webtoolkit.info/javascript-sprintf.html: relatively complete simulation of sprintf functions.
Reprint from http://blogold.chinaunix.net/u3/94700/showart.php? Id = 2340792
GccA large number of warning options are provided to warn against possible problems in the code. You can use-wall to enable the following warning:-Waddress-warray-bounds
1. Cut [Options] file name-F column number #提取第几列 (delimited defaults think \ t)-D delimiter #指定分隔符Example: Cut-f 2 a.txt #截取文件a The second column of content (column number starting from 1)Cut-f 2,4 A.txt #截取文件a The second and fourth columns of the.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.